<div id="tabs">
    <ul>
        <li><a href="#tabs-1">Pemesanan Sukses Order</a></li>
        <li><a href="#tabs-2">Pemesanan Gagal Order</a></li>
    </ul>
    <div id="tabs-1" style="padding: 10px 2px 2px 2px;">
        <div id="container" style="height: 370px; margin-bottom: 20px; " ></div>
        <div class="clear"></div>

        <table id="datatable" style="display: none;">
            <thead>
                <tr>
                    <th></th>
                    <th>Grafik Pemesanan Sukses Order</th>
                </tr>
            </thead>
            <tbody>		
                <?php
                foreach ($dt_grafik as $dtg) {
                    echo "<tr>";
                    echo "<th>$dtg->tanggal  </th>";
                    echo "<td>$dtg->jml_transaksi</td>";
                    echo "</tr>";
                }
                ?>
            </tbody>
        </table>
    </div>
    <div id="tabs-2" style="padding: 10px 2px 2px 2px;">
        <div id="container2" style="height: 370px; margin-bottom: 20px; " ></div>
        <div class="clear"></div>

        <table id="datatable2" style="display: none;">
            <thead>
                <tr>
                    <th></th>
                    <th>Grafik Pemesanan Gagal Order</th>
                </tr>
            </thead>
            <tbody>		
                <?php
                foreach ($dt_grafik2 as $dtg2) {
                    echo "<tr>";
                    echo "<th>$dtg2->tanggal  </th>";
                    echo "<td>$dtg2->jml_transaksi</td>";
                    echo "</tr>";
                }
                ?>
            </tbody>
        </table>
    </div>
</div>





<div class="clear"></div>